package com.ztao.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.ztao.service.ApArticleService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/es")
public class EsInitController {
    @Resource
    private ApArticleService apArticleService;
    @RequestMapping("/init")
    public ResponseResult init(){
        return apArticleService.esinit();
    }
}
